home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / midi / gfft.lha / gfft-2.03 / source / gfft-2.03-source.lha / amigadef.h next >
C/C++ Source or Header  |  1996-01-02  |  3KB  |  107 lines

  1. /***************************************************************************
  2.  *          Copyright (C) 1994  Charles P. Peterson                  *
  3.  *         4007 Enchanted Sun, San Antonio, Texas 78244-1254             *
  4.  *              Email: Charles_P_Peterson@fcircus.sat.tx.us                *
  5.  *                                                                         *
  6.  *          This is free software with NO WARRANTY.                  *
  7.  *          See gfft.c, or run program itself, for details.              *
  8.  *              Support is available for a fee.                      *
  9.  ***************************************************************************
  10.  *
  11.  * Program:     gfft--General FFT analysis
  12.  * File:        amigadef.h   ** SYSTEM DEPENDENT **
  13.  * Purpose:     system dependent definitions
  14.  * Author:      Charles Peterson (CPP)
  15.  * History:     31-May-1993 CPP; Created.
  16.  *               6-Jul-1994 CPP (0.74); allow simultaneous MORE sessions
  17.  * Comment:     This file should NOT include storage allocations.
  18.  */
  19.  
  20. #ifndef AMIGADEF_H
  21. #define AMIGADEF_H
  22.  
  23. /*
  24.  * HELP_PATH_LIST is used for COPYING (Gnu Public License) and help file(s)
  25.  * init files, etc.
  26.  *
  27.  * STARTUP_PATH_LIST is used for finding and reading the startup file
  28.  *
  29.  * "\0" is recognized as the current directory
  30.  * NULL ends the path list
  31.  */
  32.  
  33. #define HELP_PATH_LIST {"\0","S:",NULL}
  34. #define STARTUP_PATH_LIST {"\0","S:",NULL}
  35.  
  36. #define HELP_FILE_NAME "gfft.help"
  37. #define TEMP_DATAFILE_NAME "t:temp-%s.fft-%d"
  38. #define TEMP_NAME_PREFIX "t:temp-"
  39.  
  40. #define PLOT_COMMAND_FILE_NAME "ram:cli.temp-gfft-plot"
  41. #define MORE_COMMAND_FILE_NAME "ram:cli.temp-gfft-more-"
  42. #define GNUPLOT_COMMAND_FILE_NAME "ram:gnuplot.temp-gfft-plot"
  43. #define DELETE_COMMAND_FILE_NAME "ram:cli.temp-gfft-delete-"
  44.  
  45. #define MAX_PLOT_COMMANDFILE_NAME 64
  46.  
  47. #define GNUPLOT_STACKSIZE 30000
  48.  
  49. #define MESSAGE_FILE_NAME "ram:temp-gfft-more-"
  50.  
  51. #define DATA_FILE_WILDCARD "t:temp-#?.fft-#?"
  52. #define COMMAND_FILE_WILDCARD "ram:cli.temp-gfft-#?"
  53. #define MESSAGE_FILE_WILDCARD "ram:temp-gfft-more-#?"
  54.  
  55. #define BACKUP_FILE_CHARACTER '_'
  56.  
  57. #define DEFAULT_INPUT_BINARY TRUE
  58. #define DEFAULT_OUTPUT_BINARY FALSE
  59.  
  60. #define DEFAULT_INPUT_BITS 8
  61. #define DEFAULT_OUTPUT_BITS 64
  62.  
  63. #define DEFAULT_INPUT_ZERO 0
  64. #define DEFAULT_OUTPUT_ZERO 0
  65.  
  66. #define DEFAULT_RATE 0   /* This forces an error unless specified */
  67.  
  68. #define COMMENT_DELIMITER(ch) \
  69.   (ch == ';' || ch == '#' || ch == '!' || ch == '(')
  70.  
  71. /*
  72.  * Define ULONG, UWORD, UBYTE, and BOOLEAN undefining first if necessary
  73.  */
  74.  
  75. #ifdef ULONG
  76. #undef ULONG
  77. #endif
  78. #define ULONG unsigned long
  79.  
  80. #ifdef UWORD
  81. #undef UWORD
  82. #endif
  83. #define UWORD unsigned short
  84.  
  85. #ifdef UBYTE
  86. #undef UBYTE
  87. #endif
  88. #define UBYTE unsigned char
  89.  
  90. #ifdef BOOLEAN
  91. #undef BOOLEAN
  92. #endif
  93. #define BOOLEAN int
  94.  
  95. /* Four-character IDentifier builder. for 68000 family */
  96. #define MakeID(a,b,c,d)  ((ULONG)(a)<<24L | (ULONG)(b)<<16L | (c)<<8 | (d))
  97.  
  98. #ifdef NONAG
  99. #undef NONAG
  100. #define NONAG (Key == (key = magic_number(\
  101. "I\'ll tell you how to do this if you just send a note of thanks.")))
  102. #endif
  103.  
  104. #endif /* ifndef AMIGADEF_H */
  105.  
  106.  
  107.